﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAiMobile.Models
{
    public class MessageItem : BindableBase
    {
        public ImageSource Header
        {
            get => _header;
            set => SetProperty(ref _header, value);
        }

        public ImageSource Message
        {
            get => _message;
            set => SetProperty(ref _message, value);
        }

        public bool IsAuthor
        {
            get => _isAuthor;
            set => SetProperty(ref _isAuthor, value);
        }

        public bool IsOther
        {
            get => _isOther;
            set => SetProperty(ref _isOther, value);
        }

        public LayoutOptions Location
        {
            get => _location;
            set => SetProperty(ref _location, value);
        }

        private ImageSource _message;
        private ImageSource _header;
        private bool _isAuthor; //是否为作者
        private bool _isOther; //是否为其他人
        private LayoutOptions _location; //出现的位置
    }
}
